package com.rj2002.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.rj2002.dao.UserMapper;
import com.rj2002.pojo.User;
import com.rj2002.service.UserService;

@Service
public class UserServiceImpl implements UserService{
	
	@Autowired
	private UserMapper userMapper;

	public List<User> userlogin(User user) {
		return userMapper.userlogin(user);
	}

	public int inserIntoUser(User user) {
		return userMapper.insert(user);
	}

	public int usercheckname(String name) {
		return userMapper.usercheckname(name);
	}

}
